package org.glandais.birt.osgi.runner;

import org.eclipse.birt.report.engine.api.RenderOption;

/**
 * Type de sortie.
 */
public enum OutputType {

	/** The PDF. */
	PDF(RenderOption.OUTPUT_FORMAT_PDF, "pdf"),

	/** The EXCEL. */
	EXCEL("xls", "xls"),

	/** The HTML. */
	HTML(RenderOption.OUTPUT_FORMAT_HTML, "html");

	/** The format. */
	private String format;

	/** The extension. */
	private String extension;

	/**
	 * Instantiates a new output type.
	 * 
	 * @param format
	 *            the format
	 * @param extension
	 *            the extension
	 */
	private OutputType(String format, String extension) {
		this.format = format;
		this.extension = extension;
	}

	/**
	 * Gets the format.
	 * 
	 * @return the format
	 */
	public String getFormat() {
		return format;
	}

	/**
	 * Gets the extension.
	 * 
	 * @return the extension
	 */
	public String getExtension() {
		return extension;
	}

}
